From e94d4918b566ec94711b98b888a7f172718a6fb6 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Wed, 9 Sep 2009 16:32:25 +0100 Subject: [PATCH] Fix an obviously inverted check in offline_page() Signed-off-by: Jan Beulich --- xen/common/page_alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/common/page_alloc.c b/xen/common/page_alloc.c index 29e10759a3..395732dee5 100644 --- a/xen/common/page_alloc.c +++ b/xen/common/page_alloc.c @@ -610,7 +610,7 @@ int offline_page(unsigned long mfn, int broken, uint32_t *status) int ret = 0; struct page_info *pg; - if ( mfn_valid(mfn) ) + if ( !mfn_valid(mfn) ) { dprintk(XENLOG_WARNING, "try to offline page out of range %lx\n", mfn); -- 2.30.2